<?php
/**
 * Created by PhpStorm.
 * User: jyolo
 * Date: 2017/2/6
 * Time: 10:25
 */

namespace app\base\validate;
use think\Validate;

class Role extends Validate
{
    protected $rule = [
        'role_name' => 'require',

    ];

    protected $message = [
        'role_name.require' => '请填写角色名称',

    ];

    protected $scene = [
        'add'   =>  ['role_name'],
        'edit'  =>  ['role_name'],
    ];
}